/* 面板组件样式 */
@use "../base/variables" as *;

.panel {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-secondary);
  border-radius: $border-radius-lg;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  color: var(--color-text-primary);
  transition: all var(--transition-base);

  &__header {
    padding: $spacing-lg $spacing-xl;
    border-bottom: 1px solid var(--color-border-tertiary);
    background: var(--color-bg-secondary);

    .title {
      font-size: $font-size-lg;
      font-weight: $font-weight-semibold;
      color: var(--color-text-primary);
      margin: 0;
    }
  }

  &__body {
    padding: $spacing-xl;
    color: var(--color-text-primary);
  }

  &__body--scroll {
    padding: $spacing-xl;
    overflow: auto;
    min-height: 0;
  }

  &__footer {
    padding: $spacing-md $spacing-xl;
    border-top: 1px solid var(--color-border-tertiary);
    background: var(--color-bg-secondary);
  }
}

/* 两列布局面板 */
.layout-two-col {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: $spacing-xl;

  @media (max-width: 1024px) {
    grid-template-columns: 300px 1fr;
    gap: $spacing-lg;
  }

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: $spacing-md;
  }
}
